package com.zking.ssm.service.impl;

import com.zking.ssm.mapper.HotelBrandMapper;
import com.zking.ssm.mapper.HotelBrandTypeMapper;
import com.zking.ssm.model.HotelBrandType;
import com.zking.ssm.service.IHotelBrandTypeService;
import com.zking.ssm.utils.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HotelBrandTypeServiceImpl implements IHotelBrandTypeService {
    @Autowired
    private HotelBrandTypeMapper hotelBrandTypeMapper;

    public HotelBrandTypeServiceImpl(){

    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return hotelBrandTypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelBrandType record) {
        return hotelBrandTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(HotelBrandType record) {
        return hotelBrandTypeMapper.insertSelective(record);
    }

    @Override
    public HotelBrandType selectByPrimaryKey(Long id) {
        return hotelBrandTypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelBrandType record) {
        return hotelBrandTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HotelBrandType record) {
        return hotelBrandTypeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelBrandType> SelectAll(HotelBrandType hotelBrandType, PageBean pageBean) {
        return hotelBrandTypeMapper.SelectAll(hotelBrandType);
    }
}
